<?php
/**
 * ExtToolbar class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtToolbar extends ExtToolbarBase
{
    /**
     * Gets the value of ExtJS buttonAlign property
     * @return String 
     */
    public function getButtonAlign()
    {
    	return $this->getConfig("buttonalign");
    }

    /**
     * Sets the value of ExtJS buttonAlign property
     * @param String $value 
     */
    public function setButtonAlign($value)
    {
    	$this->setConfig("buttonalign",$value);
    }

    /**
     * Gets the value of ExtJS enableOverflow property
     * @return Boolean 
     */
    public function getEnableOverflow()
    {
    	return $this->getConfig("enableoverflow");
    }

    /**
     * Sets the value of ExtJS enableOverflow property
     * @param Boolean $value 
     */
    public function setEnableOverflow($value)
    {
    	$this->setConfig("enableoverflow",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'buttonalign' => 'buttonAlign',
            'enableoverflow' => 'enableOverflow'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'overflowchange' => array('c','lastOverflow')
        ));


        $this->proptags = array_merge($this->proptags,array(
            'toolbaritems' => true
        ));
        $this->setXType('toolbar');
        $this->setXClass('Ext.Toolbar');
    }    
}
?>